package com.goktech.olala.server.dao.customer;

import com.goktech.olala.server.pojo.customer.CtmSingLog;
import com.goktech.olala.server.pojo.customer.CtmSingLog;

import java.util.List;

/**
 * @author wyn
 */
public interface CtmSingLogMapper {
    /**
     * 新增签到
     * @param record
     * @return
     * @throws Exception
     */
    int insert(CtmSingLog record)throws Exception;

    /**
     * 新增签到信息日志
     * @param ctmSingLog
     * @return
     * @throws Exception
     */
    int insertSignInfo(CtmSingLog ctmSingLog) throws Exception;

    /**
     * 查询所有
     * @return
     * @throws Exception
     */
    List<CtmSingLog> selectAll()throws Exception;

    /**
     * 查询签到信息
     * @param ctmSingLog
     * @return
     * @throws Exception
     */
    String querySignById(String ctmSingLog)throws Exception;

    /**
     * 查询签到时间
     * @param customerId
     * @return
     * @throws Exception
     */
    CtmSingLog selectTimeById(String customerId) throws Exception;

    /**
     * 更新签到信息
     * @param ctmSingLog
     * @return
     * @throws Exception
     */
    int updateSignInfo(CtmSingLog ctmSingLog) throws Exception;

    /**
     * 查询签到信息
     * @param customerId
     * @return
     * @throws Exception
     */
    CtmSingLog querySignInfoById(String customerId)throws Exception;


}